﻿using System;
using System.Collections;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("欢迎来到KFC！！！");
            Console.WriteLine("开始疯狂点餐");
            Queue queue = new Queue();
            queue.Enqueue("香辣鸡翅");
            queue.Enqueue("奥尔良烤翅");
            queue.Enqueue("劲爆鸡米花");
            queue.Enqueue("黄金鸡柳");
            queue.Enqueue("可口可乐");
           /* while (queue.Count != 0)
            {
                Console.WriteLine(queue.Dequeue()); 
            }
            Console.WriteLine("点餐结束，请等待");
            */
            var food = queue.ToArray();
            foreach (var item in food)
            {
                Console.WriteLine(item);
            }

            var good = queue.GetEnumerator();
            while (good.MoveNext())
            {
                Console.WriteLine(good.Current);
            }

        }
    }
}
